<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>无标题文档</title>
</head>
<script src="js/vue.js"></script>
<script src="js/jquery-1.12.4.js"></script>
<body>
    <c:forEach items="${meds}" var="m">
        <h1>病人信息</h1>
        <p>病人姓名* <input type="text" value="${m.registry.patient.name}" disabled="disabled"></p>
        <p>家庭地址* <input type="text"  value="${m.registry.patient.address}" disabled="disabled"></p>
        <p>身份证号* <input type="text" value="${m.registry.patient.idCard}" disabled="disabled"></p>
        <p>性别* <input type="text" name="sex" value="${m.registry.patient.sex==1?'男':'女'}" disabled="disabled"></p>
        <p>出生日期* <input type="text" disabled="disabled"></p>
        <br>
        <br>
        <h1>挂号信息</h1>
        <p>挂号单编号* <input type="text" value="${m.registry.id}" disabled="disabled"></p>
        <p>就诊科室* <input type="text"  value="${m.registry.department.name}" disabled="disabled"></p>
        <p>就诊房间* <input type="text" value="${m.registry.room.name}" disabled="disabled"></p>
        <p>挂号医师* <input type="text" name="sex" value="${m.registry.sysUsers.userName}" disabled="disabled"></p>
        <p>就诊时间* <input type="text"  disabled="disabled"></p>
        <p>挂号时间* <input type="text" disabled="disabled"></p>
        <br>
        <br>
        <h1>医嘱信息</h1>
        <p>病人主诉*  <textarea rows="10" cols="50">${m.chiefComplaint}</textarea></p>
        <p>诊断结果*  <textarea rows="10" cols="50">${m.diagnosis}</textarea></p>
        <p>就诊医师* <input type="text" name="sex" value="${m.registry.sysUsers.userName}" disabled="disabled"></p>
    </c:forEach>
</body>
</html>
